<template>
  <div class="app-container scrollspy">
    <div class="s_left" v-scroll-spy>
      <div class="box p_10 mb_20">
        <div>
          <h1><i class="el-icon-s-cooperation"></i>基本信息</h1>
          <tzjhbg></tzjhbg>
        </div>
      </div>
      <div class="box p_10 mb_20">
        <h1><i class="el-icon-s-cooperation"></i>可行性研究</h1>
        <tzjhbg></tzjhbg>
      </div>
      <div class="box p_10 mb_20">
        <h1><i class="el-icon-s-cooperation"></i>投资方案</h1>
        <tzjhbg></tzjhbg>
      </div>
    </div>
    <ul
      class="menu s_right box p_10"
      v-scroll-spy-active="{ selector: 'li.menu-item', class: 'customActive' }"
      v-scroll-spy-link>
      <li class="menu-item">
        <a>基本信息</a>
      </li>
      <li class="menu-item">
        <a>项目进度信息</a>
      </li>
      <li class="menu-item">
        <a>项目文件信息</a>
      </li>
    </ul>
  </div>
</template>

<script>
import tzjhbg from "@/components/bigView/gqtz/tab1/tzjhbg.vue";
export default {
  components: {
    tzjhbg,
  },
  data() {
    return {
      list: null,
      listLoading: true,
    };
  },
  created() {},
  methods: {},
};
</script>
<style lang="scss" scoped>
.scrollspy {
  position: relative;
  display: flex;
  ul {
    padding-right: 20px;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 10px;
    li {
      line-height: 30px;
      list-style: none;
    }
  }
}
.s_left {
  width: 80%;
  margin-right: 300px;
  h1 {
    color: #102643;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    i {
      margin-right: 10px;
      font-size: 30px;
    }
  }
}
.s_right {
  h1 {
    color: #102643;
    font-weight: bold;
    font-size: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    i {
      margin-right: 10px;
      font-size: 30px;
    }
  }
  width: 15%;
  position: fixed;
  text-align: left;
  right: 20px;
  box-sizing: border-box;
}
.customActive {
  color: #178ce6;
  border-left: 1px solid #178ce6;
  padding-left: 5px;
  transition: all 0.5s;
}
</style>
